package com.dsj.gxrd.modules.book.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author songpin566
 * @date 2023/09/11
 **/
@Data
@ApiModel(description = "书籍DTO")
public class RdBookDto {

    @ApiModelProperty("id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long rdBookId;

    @ApiModelProperty("书籍名称")
    private String bookName;

    @ApiModelProperty("书籍作者")
    private String bookAuthor;

    @ApiModelProperty("出版社")
    private String publishHouse;

    @ApiModelProperty("书籍信息")
    private String bookInfo;

    @ApiModelProperty("书籍排序")
    private Integer bookSort;

    @ApiModelProperty("推荐理由")
    private String recommendReason;

    @ApiModelProperty("推荐人")
    private String referrer;

    @ApiModelProperty("书籍分类")
    private Long sysBookCatId;

    @ApiModelProperty("创建者")
    private Long createBy;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("更新者")
    private Long updateBy;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("文件集")
    List<RdFileDto> fileList;

    @ApiModelProperty("审批状态")
    private Integer approvalStatus;

    @ApiModelProperty("审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime approvalTime;

    @ApiModelProperty("审核人姓名")
    private String approvalByName;

    @ApiModelProperty("审核内容")
    private String approvalContent;


}
